/**
 * @Author com.alibaba.lizhen
 * @Date 2021/4/17 7:01 下午
 * @Version 1.0
 * @Description
 */
public class Main {

	static class A {

		public int money = 1;

		public A() {
			money = 2;
			showMoney();
		}

		public void showMoney() {
			System.out.println(this + "  father " + money);
		}

	}

	static class B extends A {

		public int money = 3;

		public B() {
//			super();
			money = 4;
			showMoney();
		}

		@Override
		public void showMoney() {
			System.out.println(this + "  son " + money);
		}
	}


	public static void main(String[] args) {
		A a = new B();
		System.out.println(" main + " + a.money);
	}

}
